<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Videocat extends ORM {
	protected $_table_name = 'videocat';

	public function getAll() {
		return DB::select()
			->from($this->_table_name)
			->order_by('sort', 'DESC')
			->as_object()
			->execute();
	}

	public function getOne($id) {
		return DB::select()
			->from($this->_table_name)
			->where('id', '=', $id)
			->as_object()
			->execute()
			->current();
	}

}